<template>
    <div>{{ '父组件中的原始数据：' + num }}</div>
    修改父组件的数据：<input type="text" v-model.lazy="num"/>
    <Son1 :num="num" @myEvent="changeNumFun"></Son1>
</template>
<script setup>
import Son1 from './components/Son1.vue'
import { ref } from 'vue'
const num = ref(0)
const changeNumFun = x => {
    num.value = x
}
</script>
<style scoped>
    
</style>